import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../common/baseEntity/index';

@Entity('permission')
export class Permission extends BaseEntity {
  @Column({ type: 'varchar', length: 50, comment: '权限名称' })
  name: string;

  @Column({ type: 'varchar', length: 255, unique: true, comment: '权限编码' })
  code: string;

  @Column({ type: 'varchar', length: 255, nullable: true, comment: '权限描述' })
  description: string;
}
